package com.siss.tenancy.elastic;


import com.siss.tenancy.elastic.controller.SissMonitorElasticSearchController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableCircuitBreaker
@EnableAsync
@EnableScheduling
@EnableFeignClients
@EnableDiscoveryClient
@ServletComponentScan(basePackages = {"com.siss.tenancy.elastic.config"})
public class ElasticApplication {
    static Logger logger = LoggerFactory.getLogger(SissMonitorElasticSearchController.class);
    public static void main(String[] args) {
        logger.info("elastic服务启动");
        new SpringApplicationBuilder(ElasticApplication.class).web(WebApplicationType.SERVLET).run(args);
    }

}
